import static org.junit.Assert.*;

import junit.framework.Assert;

import org.junit.After;
import org.junit.Before;
import org.junit.Test;
import org.zanateh.wargame.game.*;

public class PlayerTest {

	@Test
	public void TestPlayer() {
		Player player = new Player("Bob");
		
		Assert.assertEquals("Bob", player.getName());
	}

	@Test
	public void TestPlayerColour() {
		Player player = new Player("Muddy");
		player.setBaseColor(0.75f,0.5f,0.25f);
		
		Assert.assertEquals(0.75f, player.r());
		Assert.assertEquals(0.5f, player.g());
		Assert.assertEquals(0.25f, player.b());
	}
}
